function selectedEntriesCount(){
	var count = 0;
	jQuery("input[class=entry_checkbox]:checked").each
	(function(){
		count++;
	});
	return count;
}

function flash_notice(){
	var msg = "<div class=\"notice\"><img src=\"/images/famfamfam/flag_blue.png\">";
	msg += "No Timestamps selected.<span class=\"close_flash\"></span></div>";	
	$(".top-flash").html(msg);
}


$(function () {
	$("#delete_entries_button").click(function(){
		var count = selectedEntriesCount();
		if (count > 0){
		$.blockUI(); 
		var request_data = add_category_info(this);
		$.post('/entries/ajax_delete',
		request_data, null, 'script');
		//return false;
	}else{
		flash_notice();
		
	}
		
	});
});